<template>
  <el-carousel indicator-position="outside" class="top" >
    <el-carousel-item v-for="item in imgList" :key="item.id" >
      <img :src="item.idView" class="image" width="100%" height="100%">
    </el-carousel-item>
  </el-carousel>
</template>

<script>
export default {
  name: 'RadioHeader',
  data() {
    return {
      imgList: [
        {id:0,idView:require('@/assets/img/banner1.jpg')},
        {id:1,idView:require('@/assets/img/banner2.jpg')},
      ]
    }
  },
}
</script>

<style lang="less" scoped>
   .top{
     width: 1200px;
     margin: 0 auto;
   }
   .image {
     width: 100%;
   }
   .el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 300px;
    margin: 0;
  }
  
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
</style>